import instance from '../index';

const BINDWECHAT_URL = 'system/bind';
const CHECKWECHATBOUND_URL = 'passports/checkWechatBound';

async function bindWechat (params) {
  const response = await instance.post(BINDWECHAT_URL, params);
  return response;
}

async function checkWechatBound () {
  const response = await instance.get(CHECKWECHATBOUND_URL);
  return response;
}

export {
  bindWechat,
  checkWechatBound,
};
